home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / C / ERR-I.H < prev    next >
Text File  |  1996-12-06  |  312b  |  20 lines

  1. void _error_(byte *s,byte a) {
  2.   printf("Error:%s\n",s);
  3.   if (a) {
  4.     printf("File:%d\n",buffn[ch]);
  5.     printf("Line:%d\n",bufln[ch]);
  6.   }
  7.   flush();
  8.   if (ho1on) close(ho1);
  9.   unlink("c.tmp");
  10.   exit(2);
  11. }
  12.  
  13. void errorf(byte *s) {
  14.   _error_(s,1);
  15. }
  16.  
  17. void error(byte *s) {
  18.   _error_(s,0);
  19. }
  20.